<div id="query-tabs">
    <ul class="tab-nav">
        <li><a href="#issued"><?php echo $this->trans("issued query") ?></a></li>
        <li><a href="#resolved"><?php echo $this->trans("resolved query") ?></a></li>
        <li><a href="#high-reward"><?php echo $this->trans("hightreward query") ?></a></li>
        <li><a href="#noanswer"><?php echo $this->trans("noanswer query") ?></a></li>
    </ul>
    <div class="tab-page">
        <ul id ="issued" class="query-list">
            <?php
            foreach($this->issuedQueries as $query) {
                echo $this->partial('partial/_listQuery.phtml', array('query' => $query));
            }
            ?>
        </ul>
        <ul id="resolved" class="query-list">
            <?php
            foreach($this->resolvedQueries as $query) {
                echo $this->partial('partial/_listQuery.phtml', array('query' => $query));
            }
            ?>
        </ul>
        <ul id="high-reward" class="query-list">
            <?php
            foreach($this->hightRewardQueries as $query) {
                echo $this->partial('partial/_listQuery.phtml', array('query' => $query));
            }
            ?>
        </ul>
        <ul id="noanswer" class="query-list">
            <?php
            foreach($this->noAnswerQueries as $query) {
                echo $this->partial('partial/_listQuery.phtml', array('query' => $query));
            }
            ?>
        </ul>
    </div>
</div>